//package com.moduleSys.resources;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
//
//public class MyInterceptor extends HandlerInterceptorAdapter {
//    private Logger logger = LoggerFactory.getLogger(MyInterceptor.class);
//
//    @Override
//    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
//            throws Exception {
//        //自定义拦截器
//         //logger.info("自定义拦截器 -->{}",request.getLocalAddr());
//        return super.preHandle(request, response, handler);
//    }
//
//}